<?php
/**
 * Created by PhpStorm.
 * User: yuyj
 * Date: 2016-03-16
 * Time: 19:12
 */

namespace common\services\common;

use common\repositories\common\MyscrmDatabaseInstanceConfigRepository;
use common\services\BaseService;

class MyscrmDatabaseInstanceConfigService extends BaseService
{
    public $repository;

    public function __construct(MyscrmDatabaseInstanceConfigRepository $repository, $config = [])
    {
        $this->repository = $repository;

        return parent::__construct($config);
    }

    public function getConfigById($id)
    {
        return $this->repository->getConfigById($id);
    }
}